<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>联系人</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-2.1.0.js"></script>
</head>
<body>
<div>
		<table>
			<thead>
				<tr>
					<th>CID
					<th />
					<th>联系人名字
					<th />
					<th>联系人电话
					<th />
					<th>UID
					<th />
					<th>TID
					<th />
				<tr />
			<thead />
			<tbody>
				<c:forEach begin="0" end="${list.size()}" items="${list}" step="1"
					var="item" varStatus="status">
					<tr>
						<td>${item.cid}
						<td />
						<td>${item.cname}
						<td />
						<td>${item.ctel }
						<td />
						<td>${item.uid }
						<td />
						<td>${item.tid }
						<td />
						<td><button>
								<a
									href="${pageContext.request.contextPath }/passUidAndTid?uid=${item.uid}&tid=${item.tid}">增加联系人</a>
							</button>
						<td />
						<td><button>
								<a
									href="${pageContext.request.contextPath }/deleteContact?cid=${item.cid}">删除联系人</a>
							</button>
						<td />
						<td><button>
								<a
									href="${pageContext.request.contextPath }/passCid?cid=${item.cid}">修改联系人</a>
							</button>
						<td />
					<tr />
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>